package com.pair.micro.fee.modules.charge.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("charge_receive_detail")
public class ChargeReceiveDetailEntity {
    /**
     * id
     */
    @TableId
    private String id;

    /**
     * 收费账单id
     */
    private String receiveId;

    /**
     * 收费详情id
     */
    private String detailId;

    /**
     * 费用区间
     */
    private String period;

    /**
     * 储存到期时间
     */
    private Date receiveOldDate;

    /**
     * 应收金额
     */
    private BigDecimal receiveAmount;

    /**
     * 应收欠款
     */
    private BigDecimal revAmount;

    /**
     * 实收金额
     */
    private BigDecimal paidAmount;

    /**
     * 本次金额
     */
    private BigDecimal thisAmount;


    /**
     * 数据状态，0, 在用 1失效
     */
    private Integer status;

    /**
     * 操作人
     */
    private Integer operatorId;

    /**
     * 创建时间
     */
    private Date createTime;
}
